# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=py3-hsluv
pkgver=5.0.3
pkgrel=2
pkgdesc="Python implementation of HSLuv (revision 4)"
url="https://www.hsluv.org/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/h/hsluv/hsluv-$pkgver.tar.gz"
builddir="$srcdir/hsluv-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
18fef949ca1e6607f5053340f368679224f5870590c95de7afa750c3e6bde62dd467b538e7264dd5854918024e06511fe314eedb52882dc09fa99a1fc25d3a59  hsluv-5.0.3.tar.gz
"
